package com.klikmee.sms.core.base.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContexts;

import com.klikmee.sms.core.model.ServiceChargingCategory;

public class ServiceChargingCategoryDAO extends AbstractDAO<ServiceChargingCategory> {

	public ServiceChargingCategoryDAO() {
		super( ServiceChargingCategory.class );
	}

	public ServiceChargingCategory findByName( String name ) {
		return (ServiceChargingCategory) entityManager.createNamedQuery( "ServiceChargingCategory.findByName" ).setParameter( "name", name ).getSingleResult();
	}
}
